import request from "./index";

//获取所有厂家信息
export interface getAllVenderAns {
    code: number;
    msg: string;
    data: Array<any>
}
export const getAllVender = () => {
    return request({
        url: '/vender/get',
        method: 'get'
    })
}

//根据id获取该厂家信息
export interface getOneVenderAns {
    code: number;
    msg: string;
    data: Array<any>
}
export const getOneVender = (vid: number) => {
    return request({
        url: '/vender/searchOne',
        method: 'get',
        params: {
            vid
        }
    })
}

